package com.tencent.service.impl;

import com.tencent.mapper.LoginMapper;
import com.tencent.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: health2.2
 * @BelongsPackage: com.tencent.service.impl
 * @ClassName: LoginServiceImpl
 * @Description: TODO 根据用户名查memberId
 * @Version: 1.0.0
 * @CreateTime: 2022-09-01  21:05
 * @Author: Yangjx
 */
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    private LoginMapper loginMapper;

    @Override
    public Integer findIdByUsername(String username) {
        Integer memberId = loginMapper.findIdByUsername(username);

        return memberId;
    }
}
